<style type="text/css">
    .remark{padding-top:4px;word-break:normal;width:auto;display:block; white-space:pre-wrap;word-wrap:break-word;overflow: hidden}
</style>
<script type="text/javascript">

    //初始化页面
    var keyId = (getUrlParam("keyId", url));
    fy_api.load_template({controller: $("#saveForm").attr("templateParam", "keyId=" + keyId), initValue: true,loading: true,loaded: init});

    //设置加油卡信息
    function init(){

        //类型
        var type = $("#type");
        if(type.text() == "0"){
            type.text("阿里服务器");
        }else{
            type.text("哈尔滨服务器");
        }

        //是否启用
        var status = $("#status");
        if(status.text() == "0"){
            status.text("禁用");
        }else{
            status.text("启用");
        }

        //服务器类型
        var serverType = $("#serverType");
        if(serverType.text() == "0"){
            serverType.text("API服务器");
        }else{
            serverType.text("DB服务器");
        }
    }
</script>
<form id="saveForm" templateUrl="server/get.do">
    <div class="div-item">
        <div class="div-label">外网IP地址：</div>
        <span class="div-item-info">${outerIp}</span>
    </div>
    <div class="div-item">
        <div class="div-label">内网IP地址：</div>
        <span class="div-item-info">${innerIp}</span>
    </div>
    <div class="div-item">
        <div class="div-label">登陆用户名：</div>
        <span class="div-item-info">${user}</span>
    </div>
    <div class="div-item">
        <div class="div-label">密码：</div>
        <span class="div-item-info">${pass}</span>
    </div>
    <div class="div-item">
        <div class="div-label">服务器类型：</div>
        <span class="div-item-info" id="type">${type}</span>
    </div>
    <div class="div-item">
        <div class="div-label">状态：</div>
        <span class="div-item-info" id="status">${status}</span>
    </div>
    <div class="div-item">
        <div class="div-label">内存：</div>
        <span class="div-item-info">${memory}</span>
    </div>
    <div class="div-item">
        <div class="div-label">CPU：</div>
        <span class="div-item-info">${cpu}</span>
    </div>
    <div class="div-item">
        <div class="div-label">磁盘1：</div>
        <span class="div-item-info">${disk1}</span>
    </div>
    <div class="div-item">
        <div class="div-label">磁盘空间1：</div>
        <span class="div-item-info">${diskSpace1}<span style="font-weight: bold;color: red;margin-left:5px">G</span></span>
    </div>
    <div class="div-item">
        <div class="div-label">磁盘2：</div>
        <span class="div-item-info">${disk2}</span>
    </div>
    <div class="div-item">
        <div class="div-label">磁盘空间2：</div>
        <span class="div-item-info">${diskSpace2}<span style="font-weight: bold;color: red;margin-left:5px">G</span></span>
    </div>
    <div class="div-item">
        <div class="div-label">磁盘3：</div>
        <span class="div-item-info">${disk3}</span>
    </div>
    <div class="div-item">
        <div class="div-label">磁盘空间3：</div>
        <span class="div-item-info">${diskSpace3}<span style="font-weight: bold;color: red;margin-left:5px">G</span></span>
    </div>
    <div class="div-item">
        <div class="div-label">磁盘4：</div>
        <span class="div-item-info">${disk4}</span>
    </div>
    <div class="div-item">
        <div class="div-label">磁盘空间4：</div>
        <span class="div-item-info">${diskSpace4}<span style="font-weight: bold;color: red;margin-left:5px">G</span></span>
    </div>
    <div class="div-item">
        <div class="div-label">类别：</div>
        <span class="div-item-info" id="serverType">${serverType}</span>
    </div>
    <div class="div-item">
        <div class="div-label">备注：</div>
        <span class="div-item-info">${remark}</span>
    </div>
</form>
<div class="form-buttons">
    <a id="btnBack" class="easyui-linkbutton c2" href="#" iconCls="icon-undo" onClick="parent.j_closeWin();">返回</a>
</div>